<!DOCTYPE html>
<html lang="zh-cmn-Hans">

<head>
    <title>影視</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
    <meta name="wechat-enable-text-zoom-em" content="true">
    <meta name="layoutmode" content="standard">
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <link rel="stylesheet" type="text/css" href="css/ui.css">
    <script src="js/jquery.min.js"></script>
    <script src="js/script.js"></script>
</head>

<body>
    <div class="page">
        <div class="page__bd" style="height: 100%;">
            <div class="weui-tab">
                <div id="panel1" role="tabpanel" aria-labelledby="tab1" class="weui-tab__panel">
                    <div class="weui-form">
                        <div class="weui-form__text-area">
                            <h2 class="weui-form__title">搜尋</h2>
                        </div>
                        <div class="weui-form__control-area">
                            <div class="weui-cells__group weui-cells__group_form">
                                <div class="weui-cells">
                                    <div class="weui-cell weui-cell_active weui-cell_vcode weui-cell_wrap">
                                        <div class="weui-cell__bd weui-flex">
                                            <input id="keyword" class="weui-input weui-cell__control weui-cell__control_flex" type="text" value="" placeholder="請輸入關鍵字..." />
                                            <button onclick="search(); return false;" class="weui-cell__control weui-btn weui-btn_default weui-vcode-btn">確定</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="panel2" role="tabpanel" aria-labelledby="tab2" class="weui-tab__panel" style="display: none;">
                    <div class="weui-form">
                        <div class="weui-form__text-area">
                            <h2 class="weui-form__title">推送</h2>
                        </div>
                        <div class="weui-form__control-area">
                            <div class="weui-cells__group weui-cells__group_form">
                                <div class="weui-cells">
                                    <div class="weui-cell weui-cell_active weui-cell_vcode weui-cell_wrap">
                                        <div class="weui-cell__bd weui-flex">
                                            <input id="push_url" class="weui-input weui-cell__control weui-cell__control_flex" type="text" value="" placeholder="請輸入播放網址..." />
                                            <button onclick="push(); return false;" class="weui-cell__control weui-btn weui-btn_default weui-vcode-btn">確定</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="panel3" role="tabpanel" aria-labelledby="tab3" class="weui-tab__panel" style="display: none;">
                    <div class="weui-form">
                        <div class="weui-form__text-area">
                            <h2 class="weui-form__title">接口/Proxy/User-Agent</h2>
                        </div>
                        <div class="weui-form__control-area" style="margin-bottom: 0px !important;">
                            <div class="weui-cells__group weui-cells__group_form">
                                <div class="weui-cells">
                                    <div class="weui-cell weui-cell_active weui-cell_vcode weui-cell_wrap">
                                        <div class="weui-cell__bd weui-flex">
                                            <input id="setting_text" class="weui-input weui-cell__control weui-cell__control_flex" type="text" value="" placeholder="請輸入..." />
                                            <button onclick="setting(); return false;" class="weui-cell__control weui-btn weui-btn_default weui-vcode-btn">確定</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="panel4" role="tabpanel" aria-labelledby="tab4" class="weui-tab__panel" style="display: none;">
                    <div class="weui-form" style="min-height: 0;">
                        <div class="weui-form__text-area">
                            <h2 class="weui-form__title">本地</h2>
                        </div>
                        <input type="file" id="file_uploader" style="display:none;" onchange="uploadTip()" multiple />
                        <div class="weui-form__control-area" style="text-align: center;margin-bottom: 10px !important;">
                            <div class="button-sp-area" style="margin-top: 10px;">
                                <a href="javascript:void(0)" role="button" class="weui-btn weui-btn_mini weui-btn_default weui-wa-hotarea" href="javascript:void(0)" onclick="uploadFile()">上傳檔案</a>&nbsp;
                                <a href="javascript:void(0)" role="button" class="weui-btn weui-btn_mini weui-btn_default weui-wa-hotarea" href="javascript:void(0)" onclick="newFolder()">新增資料夾</a>&nbsp;
                                <a id="delCurFolder" href="javascript:void(0)" role="button" class="weui-btn weui-btn_mini weui-btn_warn weui-wa-hotarea" href="javascript:void(0)" onclick="delFolder()" style="display: none;">刪除資料夾</a>
                            </div>
                        </div>
                        <div class="weui-cells" id="file_list">
                        </div>
                    </div>
                </div>
                <div role="tablist" class="weui-tabbar">
                    <div id="tab1" role="tab" aria-labelledby="t1_title" aria-selected="true" aria-controls="panel1" class="weui-tabbar__item weui-bar__item_on">
                        <img style="width: 20px; height: 20px; margin: 5px 0 5px 0;" alt="" src="images/ic_search.svg" class="weui-tabbar__icon">
                        <p id="t1_title" aria-hidden="true" class="weui-tabbar__label">搜尋</p>
                    </div>
                    <div id="tab2" role="tab" aria-labelledby="t2_title" aria-selected="false" aria-controls="panel2" class="weui-tabbar__item">
                        <img style="width: 20px; height: 20px; margin: 5px 0 5px 0;" alt="" src="images/ic_push.svg" class="weui-tabbar__icon">
                        <p aria-hidden="true" id="t2_title" class="weui-tabbar__label">推送</p>
                    </div>
                    <div id="tab3" role="tab" aria-labelledby="t3_title" aria-selected="false" aria-controls="panel3" class="weui-tabbar__item">
                        <img style="width: 20px; height: 20px; margin: 5px 0 5px 0;" alt="" src="images/ic_setting.svg" class="weui-tabbar__icon">
                        <p id="t3_title" aria-hidden="true" class="weui-tabbar__label">設定</p>
                    </div>
                    <div id="tab4" role="tab" aria-labelledby="t4_title" aria-selected="false" aria-controls="panel4" class="weui-tabbar__item">
                        <img style="width: 20px; height: 20px; margin: 5px 0 5px 0;" alt="" src="images/ic_local.svg" class="weui-tabbar__icon">
                        <p id="t4_title" aria-hidden="true" class="weui-tabbar__label">本地</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div role="dialog" aria-hidden="true" aria-modal="true" id="fileInfoDialog" style="display: none;">
        <div class="weui-mask"></div>
        <div class="weui-dialog">
            <div class="weui-dialog__hd"><strong class="weui-dialog__title">本地路徑</strong></div>
            <div class="weui-dialog__bd" id="fileUrl"></div>
            <div class="weui-dialog__ft">
                <a role="button" href="javascript:void(0)" onclick="pushFile(0)" class="weui-dialog__btn weui-dialog__btn_default">關閉</a>
                <a role="button" href="javascript:void(0)" onclick="pushFile(1)" class="weui-dialog__btn weui-dialog__btn_primary">使用</a>
                <a role="button" href="javascript:void(0)" onclick="delFile()" class="weui-dialog__btn weui-dialog__btn_primary" id="delFileBtn">刪除</a>
            </div>
        </div>
    </div>
    <div role="dialog" aria-hidden="true" aria-modal="true" id="uploadTip" style="display: none;">
        <div class="weui-mask"></div>
        <div class="weui-dialog">
            <div class="weui-dialog__hd"><strong class="weui-dialog__title">確認上傳？</strong></div>
            <div class="weui-dialog__bd" id="uploadTipContent"></div>
            <div class="weui-dialog__ft">
                <a role="button" href="javascript:void(0)" onclick="doUpload(0)" class="weui-dialog__btn weui-dialog__btn_default">取消</a>
                <a role="button" href="javascript:void(0)" onclick="doUpload(1)" class="weui-dialog__btn weui-dialog__btn_primary">確定</a>
            </div>
        </div>
    </div>
    <div role="dialog" aria-hidden="true" aria-modal="true" id="newFolder" style="display: none;">
        <div class="weui-mask"></div>
        <div class="weui-dialog">
            <div class="weui-dialog__hd"><strong class="weui-dialog__title">新增資料夾</strong></div>
            <div class="weui-dialog__bd">
                <input id="newFolderContent" class="weui-input weui-cell__control weui-cell__control_flex" type="text" value="" placeholder="請輸入資料夾名稱..." />
            </div>
            <div class="weui-dialog__ft">
                <a role="button" href="javascript:void(0)" onclick="doNewFolder(0)" class="weui-dialog__btn weui-dialog__btn_default">取消</a>
                <a role="button" href="javascript:void(0)" onclick="doNewFolder(1)" class="weui-dialog__btn weui-dialog__btn_primary">確定</a>
            </div>
        </div>
    </div>
    <div role="dialog" aria-hidden="true" aria-modal="true" id="delFolder" style="display: none;">
        <div class="weui-mask"></div>
        <div class="weui-dialog">
            <div class="weui-dialog__hd"><strong class="weui-dialog__title">刪除資料夾</strong></div>
            <div class="weui-dialog__bd" id="delFolderContent"></div>
            <div class="weui-dialog__ft">
                <a role="button" href="javascript:void(0)" onclick="doDelFolder(0)" class="weui-dialog__btn weui-dialog__btn_default">取消</a>
                <a role="button" href="javascript:void(0)" onclick="doDelFolder(1)" class="weui-dialog__btn weui-dialog__btn_primary">確定</a>
            </div>
        </div>
    </div>
    <div role="dialog" aria-hidden="true" aria-modal="true" id="delFile" style="display: none;">
        <div class="weui-mask"></div>
        <div class="weui-dialog">
            <div class="weui-dialog__hd"><strong class="weui-dialog__title">刪除檔案</strong></div>
            <div class="weui-dialog__bd" id="delFileContent"></div>
            <div class="weui-dialog__ft">
                <a role="button" href="javascript:void(0)" onclick="doDelFile(0)" class="weui-dialog__btn weui-dialog__btn_default">取消</a>
                <a role="button" href="javascript:void(0)" onclick="doDelFile(1)" class="weui-dialog__btn weui-dialog__btn_primary">確定</a>
            </div>
        </div>
    </div>
    <div role="alert" id="warnToast" style="display: none;">
        <div class="weui-mask_transparent"></div>
        <div class="weui-toast">
            <i class="weui-icon-warn weui-icon_toast"></i>
            <p class="weui-toast__content" id="warnToastContent"></p>
        </div>
    </div>
    <div role="alert" id="loadingToast" style="display: none;">
        <div class="weui-mask_transparent"></div>
        <div class="weui-toast">
            <span class="weui-primary-loading weui-icon_toast"><span class="weui-primary-loading__dot"></span></span>
            <p class="weui-toast__content">載入中</p>
        </div>
    </div>
</body>

</html>